/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.employee.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * fx更换部门历史Entity
 * @author jyangye
 * @version 2017-11-17
 */
public class FxChangedepartmenthistory extends DataEntity<FxChangedepartmenthistory> {
	
	private static final long serialVersionUID = 1L;
	private String changedepthistoryid;		// changedepthistoryid
	private String userid;		// userid
	private String employeeid;		// employeeid
	private Date changedate;		// changedate
	private String beforecompany;		// beforecompany
	private String beforedepartment;		// beforedepartment
	private String beforeposition;		// beforeposition
	private String aftercompany;		// aftercompany
	private String afterdepartment;		// afterdepartment
	private String afterposition;		// afterposition
	
	public FxChangedepartmenthistory() {
		super();
	}

	public FxChangedepartmenthistory(String id){
		super(id);
	}

	@Length(min=1, max=32, message="changedepthistoryid长度必须介于 1 和 32 之间")
	public String getChangedepthistoryid() {
		return changedepthistoryid;
	}

	public void setChangedepthistoryid(String changedepthistoryid) {
		this.changedepthistoryid = changedepthistoryid;
	}
	
	@Length(min=1, max=32, message="userid长度必须介于 1 和 32 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=1, max=32, message="employeeid长度必须介于 1 和 32 之间")
	public String getEmployeeid() {
		return employeeid;
	}

	public void setEmployeeid(String employeeid) {
		this.employeeid = employeeid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="changedate不能为空")
	public Date getChangedate() {
		return changedate;
	}

	public void setChangedate(Date changedate) {
		this.changedate = changedate;
	}
	
	@Length(min=1, max=50, message="beforecompany长度必须介于 1 和 50 之间")
	public String getBeforecompany() {
		return beforecompany;
	}

	public void setBeforecompany(String beforecompany) {
		this.beforecompany = beforecompany;
	}
	
	@Length(min=1, max=50, message="beforedepartment长度必须介于 1 和 50 之间")
	public String getBeforedepartment() {
		return beforedepartment;
	}

	public void setBeforedepartment(String beforedepartment) {
		this.beforedepartment = beforedepartment;
	}
	
	@Length(min=0, max=50, message="beforeposition长度必须介于 0 和 50 之间")
	public String getBeforeposition() {
		return beforeposition;
	}

	public void setBeforeposition(String beforeposition) {
		this.beforeposition = beforeposition;
	}
	
	@Length(min=1, max=50, message="aftercompany长度必须介于 1 和 50 之间")
	public String getAftercompany() {
		return aftercompany;
	}

	public void setAftercompany(String aftercompany) {
		this.aftercompany = aftercompany;
	}
	
	@Length(min=1, max=50, message="afterdepartment长度必须介于 1 和 50 之间")
	public String getAfterdepartment() {
		return afterdepartment;
	}

	public void setAfterdepartment(String afterdepartment) {
		this.afterdepartment = afterdepartment;
	}
	
	@Length(min=0, max=50, message="afterposition长度必须介于 0 和 50 之间")
	public String getAfterposition() {
		return afterposition;
	}

	public void setAfterposition(String afterposition) {
		this.afterposition = afterposition;
	}
	
}